home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_11 / saks / generic.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-08  |  344 b   |  17 lines

  1. Listing 1 - a simple version of generic.h
  2.  
  3. //
  4. // generic.h - macros for implementing generic classes
  5. //
  6. #ifndef GENERIC_H_INCLUDED
  7. #define GENERIC_H_INCLUDED
  8.  
  9. #define name2(n1, n2) _name2(n1, n2)
  10. #define _name2(n1, n2) n1 ## n2
  11.  
  12. #define declare(c, t) name2(c, declare)(t)
  13. #define implement(c, t) name2(c, implement)(t)
  14.  
  15. #endif
  16.  
  17.